import VueRouter from 'vue-router'
import Vue from 'vue'
Vue.use(VueRouter)
import login from '@/views/login/login.vue'
import layout from '@/views/layout/layout.vue'
import chart from '@/views/layout/chart/chart.vue'
const router = new VueRouter({
  routes: [
    {
      path: '/',
      redirect: '/login'
    },
    {
      path: '/login',
      component: login
    },
    {
      path: '/layout',
      component: layout,
      children: [
        {
          path: '/layout/chart',
          component: chart
        }
      ]
    }
  ]
})
// 动作快 git pull   接取服务器代码到当前 分支   立马修改,动作 快一点  修改完立马提交
// 输出 router
export default router
